package com.flea.hclv.service;

import com.flea.hclv.model.entity.HAddress;
import com.flea.hclv.model.entity.HSpot;
import com.flea.hclv.model.entity.vo.SpotVo;
import com.flea.hclv.util.ServerResponse;
import com.flea.system.bean.FleaPage;

import java.util.List;

public interface HSpotService {
    boolean saveOrUpdate(HSpot spot, String userId, HAddress address);

    FleaPage<HSpot> selectAll(int curPage, int pageSize, String spotName, String province, String city, String area, String level);

    boolean delete(String userId, String spotId);

    List<SpotVo> selectSpotInfo(String userId);

    boolean deleteByIds(List<String> idList, String userId);

    List<HSpot> selectAllSpots();

    ServerResponse<FleaPage<HSpot>> selectMySpotByDeptId(String deptUuid, int curPage, int pageSize, String spotName, String province, String city, String area, String level);

    ServerResponse<List<HSpot>> selectByDeptId(String deptUuid);

    ServerResponse<List<HSpot>> selectByLineId(String lineId);
}
